package com.myk.game.heroscuffle.events;

import com.myk.game.heroscuffle.game.Hero;

/**
 * 英雄普攻行为结束计算伤害之前触发
 */
public class GameEvent_HeroAttack extends GameEventBase {

    public Hero attacker;
    public Hero attacked;
    public int damage;
    public boolean isToDeath;

    public GameEvent_HeroAttack(Hero attacker, Hero attacked, int damage, boolean isToDeath) {
        super(attacked.game.round);
        this.attacker = attacker;
        this.attacked = attacked;
        this.damage = damage;
        this.isToDeath = isToDeath;
    }
}
